<?php

namespace app\data\model;

use think\admin\Model;

/**
 * @package app\data\model
 */
class GoodsModels extends Model
{
    protected $table = "goods_models";

    public function goods(){
        return $this->belongsTo(StoreGoods::class,'goods_id');
    }

    public function attributes()
    {
        return $this->hasMany(GoodsAttributeRelations::class, 'model_id', 'id');
    }
  
}